package pk.nak.requests;

import pk.nak.enums.TossDownURLs;
import pk.nak.responses.GetLocationsResponse;

import com.loopj.android.http.RequestParams;

public class GetLocationsRequest extends PostRequest {

	public GetLocationsRequest(String userid) {
		
		super(TossDownURLs.GET_LIST, null);
		
		RequestParams parms = new RequestParams();
		parms.put("pnode", "locations");
		parms.put("cnode", "location");
		parms.put("table", "trends_userfavouriateplaces");
		parms.put("fields", "*");
		parms.put("condition", "userid = " + userid);
		
		this.setData(parms);
	}

	public void doRequest(GetLocationsResponse responseHandler) {
		super.doRequest(responseHandler);
	}

}
